module.exports = {
    drawPoint:function(Q,P,size,color){
        let p = P.toCanvas();
        Q.fillStyle = color;
        Q.beginPath();
        Q.arc(p.x, p.y, size, 0, Math.PI * 2);
        Q.closePath();
        Q.fill();
    },
    drawLine:function(Q,L,color){
        let p1 = L.a.toCanvas();
        let p2 = L.b.toCanvas();

        Q.strokeStyle = color;
        Q.beginPath();
        Q.moveTo(p1.x, p1.y);
        Q.lineTo(p2.x, p2.y);
        Q.closePath();
        Q.stroke();
    }
}